# -*- coding: utf-8 -*-

from odoo import models, fields, api


class ResPartner(models.Model):
    _inherit = 'res.partner'
    contact_name = fields.Char(string=u'联络人')
    fax=fields.Char(string=u'传真')
    tax_id=fields.Many2one('account.tax',string=u'税率')
    _sql_constraints = [
        ('partner_name', 'unique (name)', "名字必须唯一"),
    ]


